<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/8/29 0029
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>
<script src="${path}/static/taoshunda/business/recommendBusiness.js"></script>
<link href="${path}/static/css/public/public.css" rel="stylesheet" type="text/css">

<div class="input-group col-xs-2" style="float: left;margin-bottom: 5px">
    <input type="text" class="form-control entry" id="name" placeholder="请在这里输入商家名称">
</div>
<div class="input-group col-xs-2" style="float: left;margin-bottom: 5px">
    <input type="text" class="form-control entry" id="cityName" placeholder="请在这里输入城市名称">
</div>
<div style="float: left;margin-bottom: 5px">
    <button type="button" class="btn query_button" onclick="queryBusinessName()" style="width: 100px;margin-left: 5px">
        <%--<span class="glyphicon glyphicon-search" aria-hidden="true"></span>--%>
        查询
    </button>
</div>

<table id="table"
       class="table table-striped table-bordered"
       data-toggle="table"
       data-url="${path}/web/management/queryRecommendBusiness"
       data-toolbar="#toolbar"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]"
>
    <thead>
    <tr>
        <th data-field="id" data-visible="false">编号</th>
        <%--<th data-formatter="User.accountOrName">名称/手机号</th>--%>
        <th data-formatter="storePic">商家图片</th>
        <th data-field="busName">商家名称</th>
        <th data-field="name">城市</th>
        <%--<th data-field="adress">地址</th>--%>
        <%--<th data-formatter="sorting">排序</th>--%>
        <th data-formatter="operateFormatter" data-events="operateEvents">操作</th>
    </tr>
    </thead>
</table>

<div id="showBusSorting-div" class="slidingmenu box-model box box-info">
    <div class="box-header">
        <h3 class="box-title">修改排名顺序</h3>
    </div>
    <div class="box-body">
        <form role="form"  method="post" id="updateBusSortingFrom">
            <div class="form-group">
                <input type="hidden"  id="pid" name="id" >
                <input type="text" class="form-control required" id="sorting" name="sorting" >
            </div>
        </form>
    </div>
    <div class="box-footer">
        <button class="btn btn-info" data-event="merge-sortingUpdate">确定</button>
        &nbsp;
        <button class="btn btn-danger close-model">关闭</button>
    </div>
</div>

<div id="updatePic-div" class="slidingmenu box-model box box-info">
    <div class="box-header">
        <h3 class="box-title">修改图片</h3>
    </div>
    <div class="box-body">
        <form role="form"  method="post" id="updatePicFrom">
            <input type="hidden"  id="id" name="id" >

            <div class="form-group">
                <input type="hidden" name="picture" id="picPath">
                <label>轮播图:</label><br>
                <img  height="150" id="pic" src="${path}/static/images/commons/img_add.png"
                     class="addImage"><br><span style="color: red">推荐上传图片为1250 x 800以上分辨率的图片</span>
            </div>
        </form>
    </div>
    <div class="box-footer">
        <button class="btn btn-info" data-event="submit-updatePic">确定</button>
        &nbsp;
        <button class="btn btn-danger close-model">关闭</button>
    </div>
</div>

<div id="detailImage-div" style="z-index:999"  class="slidingmenu box-model box box-info">
    <div class="box box-info">
        <div class="box-body">
            <div class="form-group">
                <div id="image" style="margin-top: 5%">

                </div>
            </div>
            <div class="box-footer">
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div><!-- /.box-body -->
    </div>
</div>